package com.yc.pre.entity.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Transient;
import java.util.Date;

/**
 * @ClassName PreSignUser
 * @Description 试标库用户表
 * @Date 2021/02/07 17:16:25
 * @Created by ccc-j
 * @email ccc-ju@outlook.com
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(value = "试标库用户")
@TableName("pre_sign_user")
public class PreSignUser {

    @ApiModelProperty(value = "用户ID")
    private Long id;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "用户手机号")
    private String phone;

    @ApiModelProperty(value = "用户密码")
    private String password;

    @ApiModelProperty(value = "标注量")
    private Integer signNum = 0;

    @ApiModelProperty(value = "严重错误数")
    private Integer badErrorNum;

    @ApiModelProperty(value = "普通错误数")
    private Integer normalErrorNum;

    @ApiModelProperty(value = "不计入错误数")
    private Integer notIncludeErrorNum;

    @ApiModelProperty(value = "用户邮箱")
    private String email;

    @ApiModelProperty(value = "是否删除（0：未删除，1：已删除）")
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    @JSONField(format = "yyyy-MM-dd hh:MM:ss")
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd hh:MM:ss")
    private Date gmtModify;

    @ApiModelProperty(value = "删除时间")
    @JSONField(format = "yyyy-MM-dd hh:MM:ss")
    private Date gmtDeleted;

    @TableField(select = false)
    private PreRole preRole;

}
